/**
	韩飞 快速显示信息
**/
var quick_jsp = _c + "/docs/hzsystem/basic_quick_info_xml.jsp";

//点击字段信息 快速查询显示字段详细信息
function _clickRowEvent(empId,column,typen) {
	try {
        var dom = event.srcElement;
        if ( dom.tagName=="A" || dom.tagName=="IMG" || dom.tagName=="SPAN") {// || dom.tagName=="INPUT") {
          return;
        }
        if (dom.tagName!="TR") {
           dom = __getReal(dom, "tagName", "TR");
        }
    }catch(e) {
    }
    //if (!__isEmpty(empId)) {
    	quickLoadUserInfo(empId,column,typen, event.x, event.y);
    //}
}
//快速显示字段的基本信息
  var _quickPanel = null;
function quickLoadUserInfo(empId,column,typen, $x, $y) {
    _Xuice.url( quick_jsp + "?uuid="+empId+"&column="+column+"&fieldtype="+typen+"&taben="+document.forms[0].taben.value , finishA, false);
    function finishA($doc) {
      var htmlCode = $doc.selectSingleNode("/xuice/info").text;
      var sb = [];
      sb.push("<div onmousedown='event.cancelBubble=true;' style='position:absolute; left:0px; top:0px; z-index:517; width:200px;height:100px;padding:2px;filter: DropShadow(Color=#eeeeee, OffX=2, OffY=2, Positive=45);'>");
      sb.push(htmlCode);
      sb.push("</div>");
      if (_quickPanel==null) {
        _quickPanel = new JPanel();
      }
      _quickPanel.getNode().innerHTML = sb.join("");;
      _quickPanel.setVis(true);
      var n = _quickPanel.getNode();
      var x = $x;
      var y = $y;
      if (x+360>document.body.clientWidth) {
        x = x - 352;
      }
      if (y+200>document.body.clientHeight) {
        y = y - 200;
      }
      
      n.style.left = x;
      n.style.top = y;

      document.body.attachEvent("onmousedown", quickPanelClose);
    }
}
  //关闭面板
function quickPanelClose() {
    _quickPanel.setVis(false);
    document.body.detachEvent("onmousedown", quickPanelClose);
}